package com.juneng.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.poi.hpsf.Decimal;

/**
 * 订单商品退款实体类
 *
 * @author zds
 * @since 2021-08-04
 */
@Data
@ApiModel(value = "OrderRefund对象", description = "订单商品退款")
@TableName("order_refund")
public class OrderRefund implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增id
     */
  @ApiModelProperty(value = "自增id")
  @TableId(value = "order_refund_id", type = IdType.AUTO)

  private Long orderRefundId;
    /**
     * 订单商品id
     */
  @ApiModelProperty(value = "订单商品id")

  private Long orderMsgId;
    /**
     * 用户id
     */
  @ApiModelProperty(value = "用户id")

  private Long userId;
    /**
     * 退款单号
     */
  @ApiModelProperty(value = "退款单号")

  private String refundSn;
    /**
     * 申请退款理由
     */
  @ApiModelProperty(value = "申请退款理由")

  private String refundReason;
    /**
     * 进度：1申请中；2已退款；3退款失败
     */
  @ApiModelProperty(value = "进度：1申请中；2已退款；3退款失败")

  private Integer refundState;
    /**
     * 失败原因
     */
  @ApiModelProperty(value = "失败原因")

  private String refundFailed;
    /**
     * 发起时间
     */
  @ApiModelProperty(value = "发起时间")

  private LocalDateTime startTime;
    /**
     * 审核时间
     */
  @ApiModelProperty(value = "审核时间")

  private LocalDateTime checkTime;
    /**
     * 更新时间
     */
  @ApiModelProperty(value = "更新时间")

  private LocalDateTime updateTime;
    /**
     * 商家信息
     */
  @ApiModelProperty(value = "商家信息")

  private String merchantInfo;
    /**
     * 退款图片
     */
  @ApiModelProperty(value = "退款图片")

  private String refundPic;
    /**
     * 内部订单号
     */
  @ApiModelProperty(value = "内部订单号")

  private String internalOrder;
    /**
     * 创建时间
     */
  @ApiModelProperty(value = "创建时间")

  private LocalDateTime createDate;
    /**
     * 文案
     */
  @ApiModelProperty(value = "文案")

  private String copyWriting;
    /**
     * 退款订单号
     */
  @ApiModelProperty(value = "退款订单号")

  private String outRefundNo;

  @ApiModelProperty(value = "退款金额")
  private Decimal refundAmount;
}
